﻿using System;
namespace Producers.Kis.Xtee.Riik.Ee.Producer.Kis {
    
    
    public class AlimonyClaimTotal : global::Xtee.Core.Schema.XsdDecimal {
        
        public AlimonyClaimTotal(decimal value) : 
                base(value) {
            this.VaiksemVordneKui = (System.Decimal)3000;
            this.Validate();
        }
        
        public AlimonyClaimTotal(string value) : 
                base(value) {
            this.VaiksemVordneKui = (System.Decimal)3000;
            this.Validate();
        }
        
        public AlimonyClaimTotal() : 
                base(new decimal()) {
        }
        
        public static bool TryParse(string value, out global::Producers.Kis.Xtee.Riik.Ee.Producer.Kis.AlimonyClaimTotal result) {
            try {
                result = new global::Producers.Kis.Xtee.Riik.Ee.Producer.Kis.AlimonyClaimTotal(value);
                return true;
            }
            catch (System.Exception ) {
                result = null;
                return false;
            }
        }
        
        public static implicit operator Decimal (AlimonyClaimTotal value) {
            return value.Value;
        }
        
        public static implicit operator AlimonyClaimTotal (decimal value) {
            return new AlimonyClaimTotal(value);
        }
    }
}
